knitr::opts_chunk$set(echo = TRUE)
You have a list of people that you are interested in. It could be directors of cultural institutions, and you are interested in their network profile. How well are they connected to different sectors like the corporate world, foundations, science etc. This analysis has the following steps:
We only need the eliter package for this analysis if we are interested in the 2013 elite. Otherwise we get another "den"-class affiliation network from either eliteDB or another source.
library(eliter) data(den) den <- as.den(den) graph.elite <- elite.network(den)
In this analysis we are interested in directors of cultural institutions. In this case we are certain they have the right names, but if we had a list of names from another source we would have to manually match each name on the list to the dataset.
culture.affils <- has.tags(den, "Culture") culture.leaders <- unique(den$NAME[which(den$ROLE == "Chief executive" & den$AFFILIATION %in% culture.affils)]) head(culture.leaders)
sectors <- standard.sectors("English") sector.dens <- tags.to.sectors(den, sectors) sector.dens
We might be interested in a subset of each sector, for instance how many women or directors from each sector they know. In this analysis we want to know if they know chairmen or directors from other sectors.
sector.dens.chiefs <- lapply(sector.dens, function(x) x[which(x$ROLE %in% c("Chief executive", "Chairman")),]) sapply(sector.dens.chiefs, nrow)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.